#include "SDLSrc/Rectangle.h"

#ifndef SDL_HEADER
    #include <SDL/SDL.h>
    #define SDL_HEADER
#endif

#ifndef CNODE_HEADER
#define CNODE_HEADER
enum NodeType
{
    START,
    END,
    WALL,
    GROUND
};

class CNode
{
    public:
        CNode(unsigned int X, unsigned int Y, unsigned int Width, unsigned int Height, NodeType Type);
        ~CNode();

    public:
        void Draw(SDL_Surface* Screen);

    public:
        unsigned int _X;
        unsigned int _Y;
        unsigned int _Width;
        unsigned int _Height;

        NodeType _Type;

		CNode* Parent;
		int IsPath;

    private:
        Rectangle* NodeRectangle;
};
#endif // #ifndef CNODE_HEADER
